package com.rp.configure.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rp.configure.entity.Alarm;
import com.rp.configure.entity.vo.AlarmVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author vicente
 * @since 2021-07-17
 */
@Mapper
public interface AlarmMapper extends BaseMapper<Alarm> {

    List<AlarmVo> getListAlarm();

    IPage<Alarm> page1(Page<Alarm> objectPage, @Param(Constants.WRAPPER) QueryWrapper<Alarm> wrapper);

    List<Alarm> list1(@Param(Constants.WRAPPER)QueryWrapper<Alarm> wrapper);
}
